package com.xtedu.examproject.entity;

import java.io.Serializable;

/*
 * Author: xzy
 * Date: 2025/10/16
 * Last Modified by: xzy
 * Last Modified date: 2025/10/16
 * Description: TODO - Add file description here
 */
public class TemplateDetail implements Serializable {
    private Integer id;
    private Integer templateId;
    private Integer questionTypeId;
    private Integer questionCount;
    private Integer scorePerQuestion;

    public String getTemplateName() {
        return templateName;
    }

    public void setTemplateName(String templateName) {
        this.templateName = templateName;
    }

    public TemplateDetail(String templateName, Integer id, Integer templateId, Integer questionTypeId, Integer questionCount, Integer scorePerQuestion, String questionTypeName) {
        this.templateName = templateName;
        this.id = id;
        this.templateId = templateId;
        this.questionTypeId = questionTypeId;
        this.questionCount = questionCount;
        this.scorePerQuestion = scorePerQuestion;
        this.questionTypeName = questionTypeName;
    }

    public String getQuestionTypeName() {
        return questionTypeName;
    }

    public void setQuestionTypeName(String questionTypeName) {
        this.questionTypeName = questionTypeName;
    }

    // 额外属性
    private String templateName;
    private String questionTypeName;


    public TemplateDetail() {
    }

    public TemplateDetail(Integer id, Integer templateId, Integer questionTypeId, Integer questionCount, Integer scorePerQuestion) {
        this.id = id;
        this.templateId = templateId;
        this.questionTypeId = questionTypeId;
        this.questionCount = questionCount;
        this.scorePerQuestion = scorePerQuestion;
    }

    public Integer getQuestionTypeId() {
        return questionTypeId;
    }

    public void setQuestionTypeId(Integer questionId) {
        this.questionTypeId = questionId;
    }

    public Integer getId() {
        return id;
    }

    @Override
    public String toString() {
        return "TemplateDetail{" +
                "id=" + id +
                ", templateId=" + templateId +
                ", questionTypeId=" + questionTypeId +
                ", questionCount=" + questionCount +
                ", scorePerQuestion=" + scorePerQuestion +
                ", templateName='" + templateName + '\'' +
                ", questionTypeName='" + questionTypeName + '\'' +
                '}';
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getTemplateId() {
        return templateId;
    }

    public void setTemplateId(Integer templateId) {
        this.templateId = templateId;
    }

    public Integer getQuestionCount() {
        return questionCount;
    }

    public void setQuestionCount(Integer questionCount) {
        this.questionCount = questionCount;
    }

    public Integer getScorePerQuestion() {
        return scorePerQuestion;
    }

    public void setScorePerQuestion(Integer scorePerQuestion) {
        this.scorePerQuestion = scorePerQuestion;
    }
}
